<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 帅哥超
  Date: 2021/5/7
  Time: 11:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>展示页面</title>
</head>
<body>
<form method="post" action="/studentServlet?option=findAll"  >
    学生姓名<input type="text" name="name"><br>
    学生密码<input type="text" name="password">
    <input type="submit" value="搜索">
</form >

<table border="2px" align="center" cellspacing="0px" cellpadding="0px">
    <tr>
        <td>学生姓名</td>
        <td>学生年龄</td>
        <td>学生密码</td>
    </tr>
    <c:forEach items="${stus}" var="stu">
        <tr>
            <td>${stu.name}</td>
            <td>${stu.age}</td>
            <td>${stu.password}</td>
        </tr>
    </c:forEach>
</table>

</table>
</body>
</html>
